import request from '@/utils/request'

// 查询股票日行情历史列表
export function listStocksDailyHistory(query) {
  return request({
    url: '/invest/stocksDailyHistory/list',
    method: 'get',
    params: query
  })
}

// 查询股票日行情历史详细
export function getStocksDailyHistory(id) {
  return request({
    url: '/invest/stocksDailyHistory/' + id,
    method: 'get'
  })
}

// 新增股票日行情历史
export function addStocksDailyHistory(data) {
  return request({
    url: '/invest/stocksDailyHistory',
    method: 'post',
    data
  })
}

// 修改股票日行情历史
export function updateStocksDailyHistory(data) {
  return request({
    url: '/invest/stocksDailyHistory',
    method: 'put',
    data
  })
}

// 删除股票日行情历史
export function delStocksDailyHistory(id) {
  return request({
    url: '/invest/stocksDailyHistory/' + id,
    method: 'delete'
  })
}

// 同步股票日行情历史列表
export function synStocksDailyHistory(query) {
  return request({
    url: '/invest/stocksDailyHistory/synStocksDailyHistory',
    method: 'get',
    params: query
  })
}
